<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // const arr = [11, 22, 33]
        // let [ a, b, c ] = arr
        // console.log(a, b, c)

        // let [ ,b , c ] = arr
        // console.log(b, c)

        // let [ a , ,c ] = arr
        // console.log(a, c)

        // let [a, ...rest] = arr
        // console.log(a, rest)

        const arr = [2,[3,4],5]
        let [,[a,b]] = arr
        console.log(a, b)
    </script>
</body>
</html>